import {hongshuexec} from "./xiaohongshu";
import './sequelize/index'
import {CronJob} from "cron";
import {pushNotify} from "./module/yuntu/fetchShop";
import {runCron} from "./module/xiaohongshu/fetchXiaohongshu";
import {fetchBloggerDetail, fetchData, fetchNoteContent} from "./module/xiaohongshu/subject";
import {accessLogger} from "./logger";
let inx =1;
new CronJob('*/5 * * * * *',  async () =>{
   await runCron();
    // const res = await fetchData(inx);//
     //await fetchNoteContent();
    //await fetchBloggerDetail();
    //  if (res){
    //      console.log("当前的页码:",inx);
    //      inx++;
    //  }
      console.log('抓取数据===22 second',new Date().getTime());
}, null, true, 'Asia/Shanghai');

// new CronJob('*/5 * * * * *',  async () =>{
//     //await runCron();
//     //const res = await fetchNoteContent();
//     // if (res){
//     //     console.log("当前的页码:",inx);
//     //     inx++;
//     // }
//     console.log('抓取数据===22 second',new Date().getTime());
// }, null, true, 'Asia/Shanghai');
